<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>

<script type="text/javascript">

$(document).ready(function() {
	jcropAvatar('${imageWeb.width}','${imageWeb.height}','${imageWeb.imageUrl}');
	//如果照片类型是从相册中选择的
	if('${photoType}'=='2'){
		$("#cut_avatar").show();
	}
	
});



</script>
<form action="crop.htm" method="post">
<input type="hidden" size="4" id="x" name="x" value="0"/>
<input type="hidden" size="4" id="y" name="y" value="0"/>
<input type="hidden" size="4" id="x2" name="x2" value="0"/>
<input type="hidden" size="4" id="y2" name="y2" value="0"/>
<input type="hidden" size="4" id="w" name="w" value="0"/>
<input type="hidden" size="4" id="h" name="h" value="0"/>
</form>
<!-- 
<h4>
	<a href="javascript:void(0);" onclick="uploadAvatar('${type}','${memberId}')">重新选择照片</a>
</h4>
 -->
<div class="d_paBox">
	<div class="d_paImg">
		<div style="width: 100%; height: 100%;" align="center">
			<img alt="" src="" id="src_image" height="${imageWeb.height}" width="${imageWeb.width}" style="margin: auto;" url="${imageWeb.imageUrl}" />
		</div>
	</div>
	<div class="d_paImg_small">
		<div class="d_img120" style="overflow: hidden;">
			<img  id="preview1" src="" alt="图片" />
		</div>
		<div class="d_img34" style="overflow: hidden;">
			<img  id="preview2" src="" alt="图片" />
		</div>
	</div>
</div>
<c:if test="${photoType==2}">
	<div class="pa_okBox" >
	<input name="" type="image" src="images/home_images/qd_bg.gif"
		onclick="javascript:cutAvatar('${type}','${photoType}','${memberId}');return false;" /><input name=""
		type="image" src="images/home_images/tc_bg.gif"
		onclick="javascript:cutAvatarCancel('${photoType}');return false;" />
	</div>
</c:if>

